package com.nsoft.server.serviceImpl;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.nsoft.server.service.main.UserService;

public class FacadeMasterFactoryImpl {

	private static ApplicationContext springContext;
	static {
		springContext = new ClassPathXmlApplicationContext(
				new String[] { "com/nsoft/server/resources/jpa-application-master-context.xml" });

	}

	public static UserService getService() {
		return (UserService) springContext.getBean("userservice");
	}
}
